<?php
/**
 * Charge table class
 * 
 * @package    Congregation
 * @subpackage Components
 * @link http://docs.joomla.org/Developing_a_Model-View-Controller_Component_-_Part_4
 * @license		GNU/GPL
 */

// No direct access
defined( '_JEXEC' ) or die( 'Restricted access' );

/**
 * Charge Table class
 *
 * @package    Congregation
 * @subpackage Components
 */
class TableQuote extends JTable
{
	/**
	 * Primary Key
	 *
	 * @var int
	 */
	var $id = null;
	
	var $qtext   = null;
	var $qdate = null;
	var $qlang = null;
	var $qsource = null;
	
/**
	 * Constructor
	 *
	 * @param object Database connector object
	 */
	function TableQuote(& $db) {
		parent::__construct('#__aquote_quotes', 'id', $db);
	}
	
	function check() {
		if (trim($this->qtext) == '') {
	      $this->setError(JText::_('Please enter the quote'));
	      return false;
	    }
		
	
		return true;
	}	
}